/**
 * 服务页js
 */
angular.module('ddapp.servant', [
])

.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) {
	$stateProvider
	// 服务页
	.state('model.servant', {
		url : '/servant',
		templateUrl : 'app/servant/servant.html',
		controller : 'ServantController'
	})
}])

// 服务控制器
.controller('ServantController', ['$scope', 'CallService', function($scope, CallService) {
	//$scope.rid = CONFIG.rid;
	//$scope.rname = CONFIG.rname;
	//$scope.dtid = CONFIG.dtid;
	//$scope.dtname = CONFIG.dtname;
	//$rootScope.buycount = ShoppingCartService.getcount();
	// 呼叫
	$scope.call = function(info) {
		CallService.callservant($scope.rid, $scope.dtid, info);
	}
}])
;